Colloidal vs. polymeric aerogels: structure and vibrational modes