Conformational flexibility facilitates self-assembly of complex DNA nanostructures