Measurement of the weak mixing angle with the Drell-Yan process in proton-proton collisions at the LHC