Magnetic susceptibilities of calcium and strontium ions