Systemic text generation as problem solving: Background II: systemic grammar