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