steps to build state flow chart in simulink matlab