Semi-Markov control models with average costs