Particle acceleration in the Herbig–Haro objects HH 80 and HH 81