Structure and function of protein-nucleic acid complexes in molecular motors and in steady assemblies