An optical humidity sensor based on Ag nanodendrites