Molecular modeling of carbon aerogels