relationship between average and marginal cost