Modeling of optical losses in graphene contacted thin film solar cells