A theory of abrupt climate changes: their genesis and anatomy