Stimulus responsive fluorescent hyperbranched polymers and their applications