3D physics and the electroweak phase transition: A framework for lattice Monte Carlo analysis