Principles and requirements of external beam dosimetry