Principles of cotranslational ubiquitination and quality control at the ribosome.