prove that the average energy density of the oscillating electric field is equal to that of the oscillating magnetic field