Preparation of silica aerogel for Cherenkov counters