Dynamic surface and interfacial tensions of surfactant and polymer solutions