Organic photovoltaics: An investigation of interface layers and space-charge effects