Energy and quality simulation of thermal processing in cans and retort pouches