Development of an automotive real-time simulator for preventive safety studies