Detection of onset of instabilities for an early warning safety monitor for articulated freight vehicles