Nonlinear electromagnetic response of bloch electrons in a magnetic field