Half-metallic ferromagnetism in transition-metal encapsulated boron nitride nanotubes