Nonminimal universal extra dimensions