Calculate the required k-point density from the input geometry for periodic quantum chemistry calculations