Mode-independent attenuation in evanescent-field sensors.