Distinct AAA-ATPase p97 complexes function in discrete steps of nuclear assembly