A code to evaluate investment projects in energy system with a SAM and a Energy-SAM