Powering buildings with clean energy generated on-site using thin-film solar