Cost-effective hiring in US high schools: estimating optimal teacher quantity and quality decisions