Micromechanics and rheology of hard and soft-sphere colloidal glasses