Static and dynamic multipolar field expansions of dislocations and cracks in solids