Characterization of layered dielectrics with short electromagnetic pulses