Evaluation of quantum-mechanical methods for the calculation of nonlinear optical properties by partitioning the properties into molecular orbitals