Curing basis set overcompleteness with pivoted Cholesky decompositions.