Thin-film solar cells for roofs