Studies in dye-surfactant interaction and its subsequent reaction with heavy metal ions: a spectrophotometric study