Nanomorphology dependent optical and mechanical properties of aerogels