Basic Principles of Radiation Detectors