Generation of Lossy Mode Resonances in Planar Waveguides Toward Development of Humidity Sensors