Resource allocation model for public health planning. A case study of tuberculosis control.