Ultrafast optical characterization of nanoscale thermal properties