Humidity sensor using surface acoustic waves propagating along layered structures