Silica aerogels with tailored chemical functionality