Energy security via certified energy flows and commodity chains