A humidity sensor using graft copolymer with polyelectrolyte branches