British museum buys working gun made on 3-D printer