Thin-film Photovoltaics Based on Earth-abundant Materials