Monopoles, confinement, and deconfinement of(2+1)Dcompact lattice QED in external fields