Measurement of flow harmonics correlations with mean transverse momentum in lead–lead and proton–lead collisions at √sNN=5.02TeV with the ATLAS detector