The Diagrams backend for the Aivika simulation library