Role of the endocytic machinery in the sorting of lysosome-associated membrane proteins.