Adequacy of cancer-related pain management and predictors of undertreatment at referral to a pain clinic