A theory of protein metabolism