Spin–orbit coupling and intersystem crossing in molecules