Effects of Nanoscale Confinement on the Functionality of Nucleic Acids for Future Applications in Nanomedicine