Flyback and/or freewheeling diode