The high-temperature two-loop effective potential of the electroweak theory in a general 't Hooft background gauge