Tailoring magnetism in CoNi films with perpendicular anisotropy by ion irradiation