Periodic ab initio bulk investigation of hydroxylapatite and type A carbonated apatite with both pseudopotential and all-electron basis sets for calcium atoms