A fluorescent thermometer operating in aggregation-induced emission mechanism: probing thermal transitions of PNIPAM in water.