Real-time renormalization group in frequency space: A two-loop analysis of the nonequilibrium anisotropic Kondo model at finite magnetic field