Protocol for the dosimetry of X- and gamma-ray beams with maximum energies between 0-6 and 50 MeV