Ionic space-charge effects in solid state organic photovoltaics.