Direct imaging of three-dimensional structure and topology of colloidal gels