High-performance and stable 2D/3D perovskite photodetectors enabled by PEAI passivation