Authoring Conceptual Diagrams by Codifying Visual Representations