A microsensor based on a microcantilever patterned with an environmentally sensitive hydrogel