Resonant heating and acceleration of ions in coronal holes driven by cyclotron resonant spectra