Resonant enhancement of evanescent waves with a thin dielectric waveguide