Rhodamine derivative functionalized chitosan as efficient sensor and adsorbent for mercury(II) detection and removal