Magnetic properties of a linear dioxonickelate(II) ion imbedded in apatite-type strontium and barium phosphates