The impact of project financing in optimizing microgrid design