Closing the loop for perovskite solar modules