Secondary radiation measurements for particle therapy applications: prompt photons produced by 4He, 12C and 16O ion beams in a PMMA target