Extension of DNA in a nanochannel as a rod-to-coil transition.