Complexes of calcium(II), strontium(II) and barium(II) with heterocyclic ligands