A triggered generator for the electrical treatment of tachycardias