Photovoltaics and thin film electronics based on II