Nanosecond-resolved temperature measurements using magnetic nanoparticles