Optimal design of distributed energy system in a neighborhood under uncertainty