Add support to the `diagrams` tool to generate cross-reference diagrams for Prolog modules when using SWI-Prolog as the backend compiler