Phase rotation scheme of laser-produced ions for reduction of the energy spread