Acceleration of electrons at type II shock fronts and production of shock‐accelerated type III bursts