The Long-run Economic Costs of AIDS : Theory and an Application to South Africa