Calculation of the QCD phase diagram at finite temperature, and baryon and isospin chemical potentials