On dynamically generating relevant elementary flux modes in a metabolic network using optimization