Hydrodynamics of DNA confined in nanoslits and nanochannels