Macrosociological applications of event history analysis: state transitions and event recurrences