Optimal Control Of Singularly Perturbed Linear Systems And Applications