Gauge unification in nonminimal models with extra dimensions