Infinitesimal perturbation analysis of a birth and death process