3He and heavy ion enrichment in solar energetic particles as evidence for cyclotron resonances with linear waves