The effects of external conditions on the internal structure of carbon aerogels