Application of quantum chemistry to geochemistry and geophysics