Effect of quantum resonances on local temperature in nonequilibrium open systems