Measurement of the weak mixing angle using the forward–backward asymmetry of Drell–Yan events in p p collisions at 8 TeV