Electroweak symmetry breaking as a consequence of compact dimensions