Origin of porosity in resorcinol-formaldehyde aerogels