Automatic Construction of Processes from a Bond Graph Representation