New core-shell hyperbranched chitosan-based nanoparticles as optical sensor for ammonia detection.