Impact of shaping on microstability in high-performance tokamak plasmas