Detectors in High-Energy Physics Experiments: Underlying Physics, Working Principles, and Realizations