Described embodiments include a system that includes a current source generator and a processor. The processor is configured to drive the current source generator to supply, for application to tissue of a subject, an electric current having an amplitude that varies in accordance with a predefined function of time, such that the amplitude initially monotonically increases to a maximum value. Other embodiments are also described.