The interaction between cations and anionic groups inducing SHG enhancement in a series of apatite-like crystals: A first-principles study