Vector bosons in heavy-ion collisions at the LHC