First-order phase transition during displacement of amphiphilic biomacromolecules from interfaces by surfactant molecules