Alanine EPR pellets for dosimetry of clinical proton and carbon ion beams