Extensional flow resistance of dilute polyacrylamide and surfactant solutions