The size–luminosity relation of lensed galaxies at z ∼ 6–9 in the Hubble Frontier Fields