A Machine Learning Approach for the Discovery of Ligand-Specific Functional Mechanisms of GPCRs