One-, two- and three-dimensional universal laws for fragmentation due to impact and explosion