Dimensional reduction of spacrtime induced by nonlinear scalar dynamics and noncompact extra dimensions