A nanothermometer based on the different pi stackings of B- and Z-DNA.