Mirror symmetry and exact solution of 4D $N = 2$ gauge theories: I