Fiscal- and Space-Constrained Energy Optimization Model for Hybrid Grid-Tied Solar Nanogrids