Preparation of coatings comprising nanosized material particles