Flow of viscoelastic surfactants through porous media