Comparative techno-economic analyses and optimization of standalone and grid-tied renewable energy systems for South Asia and Sub-Saharan Africa | Synapse