Mechanisms of protein localization