Self-assembled copolymeric nanoparticles as chemically interactive materials for humidity sensors