Thin film photovoltaic cells having blocking layers