Wγ and Zγ production at the LHC in NNLO QCD