Using health production functions to evaluate treatment effectiveness: an application to a community mental health service.