Dynamic weight functions for a moving crack. II. Shear loading