Text this: Biodiesel-based biorefineries: hierarchical design and implementation