The determination of sodium, potassium and magnesium in surfactants by flame spectrophotometry