Thin-film solar cell factory design