Azimuthal anisotropy of charged particles with transverse momentum up to 100 GeV/c in PbPb collisions at sqrt(s_NN) = 5.02 TeV