Transient excitation of a layered dielectric medium by a pulsed electric dipole