Real time control of restraint systems in frontal crashes