Predicting binding affinities for GPCR ligands using free-energy perturbation