Line identification in high-resolution, near-infrared CRIRES spectra of chemically peculiar and Herbig Ae stars