A Diamond Temperature Sensor Based on the Energy Level Shift of Nitrogen-Vacancy Color Centers