Two-photon absorption and second harmonic generation of 1S para- and orthoexcitons in Cu2O coupled by a magnetic field