Magnetic Field Effects in Optical Harmonics Generation by Excitons