Discrete stochastic programming by infinitesimal perturbation analysis: the case of resource allocation in satellite networks with fading