Robust optimal control of linear hybrid systems: An MLD approach