Applying the American Pain Society's QA standards to evaluate the quality of pain management among surgical, oncology, and hospice inpatients in Taiwan