Energy, vibration and the electromagnetic fields