Quantum electrodynamics with nonrelativistic sources. IV. Poynting vector, energy densities, and other quadratic operators of the electromagnetic field.