Algorithms For Automated Assignment Of Solution-State And Solid-State Protein Nmr Spectra.