hardware in the loop simulation pdf