Measurement of the azimuthal anisotropy of charged particles in 5.02 TeV Pb+Pb and 5.44 TeV Xe+Xe collisions with ATLAS