On the extinction theorem in electrodynamics