Phase structure of four-fermion theories at finite temperature and chemical potential in arbitrary dimensions