Porous antireflective coatings with controlled thickness and refractive index on glass