A designed miniature sensor for the trace level detection and degradation studies of the toxic dye Rhodamine B