Spin-optoelectronic devices based on hybrid organic-inorganic trihalide perovskites | Synapse