Local shear transformations in deformed and quiescent hard-sphere colloidal glasses