Time evolution of the electric field using the rapid expansion method with pseudospectral evaluation of spatial derivatives — Part 2: Inclusion of anisotropy and the earth-air interface