Electroweak phase transition in 2HDM under Higgs, Z-pole, and W precision measurements