Constraints on the formation of bubble universes