Explaining variations in inpatient length of stay in the National Health Service