Micromechanics and rheology of colloidal gels via dynamic simulation