The effect of light environment during the film formation process on the morphology and function of organic photovoltaics