Optimal and Robust Controllers for Periodic and Multi-Rate Systems