Nonlinear electromagnetic formulation for particle-in-cell simulation of lower hybrid waves in toroidal geometry