Photocatalytic activity and stability of TiO2 and WO3 thin films