Development of a sustainable lignocellulosic biodiesel refinery