Study of refractive index and physical thickness of porous silica films with ageing in hydrated ammonia and air