Sugar-inversion method for measuring temperature and its application to landscape ecology research