Multifunctional graphene and carbon nanotube films for planar heterojunction solar cells