Investigation and optimization of hybrid organic/inorganic heterojunction solar cells