Optical properties and microstructure of sol-gel derived Ca0.4Sm0.4TiO3 thin films