Lead removal from perovskite solar cells