Physarum-inspired multi-commodity flow dynamics