Mechanism of proteasome-mediated processing of proteins