Probing local lattice distortion in medium- and high-entropy alloys