Patterns and determinants of inappropriate imaging: an investigation using the Massachusetts all-payer database.