Advancing Road Safety Through Software-Defined Vehicles