Electrical measurement of absolute temperature and temperature transients in a buried nanostructure under ultrafast optical heating