Non-Hermitian Sensing in Photonics and Electronics: A Review