What key functions and incentives of HMOs affect costs?