The KLEVER Survey: spatially resolved metallicity maps and gradients in a sample of 1.2 < z < 2.5 lensed galaxies