Finite density QCD via an imaginary chemical potential