Cogeneration Planning under Uncertainty. Part I: Multiple Time Frame Formulation