Formal models of UML statechart diagrams based on Petri nets