Measurement of the weak mixing angle using the forward–backward asymmetry of Drell–Yan events in \(\mathrm {p}\mathrm {p}\) collisions at 8\(\,\text {TeV}\)