Development of processing conditions for organic photovoltaic devices