Inorganic thin film solar cells