Thermodynamics and biological applications of DNA nanostructures