Polycyclic aromatic hydrocarbons in the near-infrared spectra of 24 IRAS sources