All in One: A Versatile n-Perovskite/p-Spiro-MeOTAD p–n Heterojunction Diode as a Photovoltaic Cell, Photodetector, and Memristive Photosynapse | Synapse