Study of Self-Powered Broadband Photodetection in Textured p-NiO x /i-MgO/n-Si (p–i–n) Heterojunctions | Synapse