Patterns of health care use and cost at the end of life