Mechanical properties of model vitreous carbon foams