Flexible thin-film solar panels