Tuning the magnetocrystalline anisotropy in RCoPO by means of R substitution: A ferromagnetic resonance study