Determination of hadron-quark phase transition line from lattice QCD and two-solar-mass neutron star observations