Effect of rhodamine B degradation during the formation of lepidocrocite