Geometry of frictionless and frictional sphere packings.