Future Advanced Driver Assistance Systems based on Optimal Control: the influence of “risk functions” on overall system behavior and on prediction of dangerous situations