Effects of quarks on SU(N) deconfinement phase transitions