Block diagrams and bond graphs, with MetaPost
