Add "stretch" parameter for tanh pulses

Sets horizontal scaling of rise/fall.

--CAR