A theoretical approach for the calculation of the Hartmann-Hahn matching under cross polarization and magic-angle spinning