Semantic Translation of Simulink/Stateflow Models to Hybrid Automata Using Graph Transformations