Z and W ± production associated with quark-antiquark pair in k T -factorization at the LHC