Electroweak measurements in electron–positron collisions at W-boson-pair energies at LEP