Fabrication of patterned boron-based nanowires and their field emission properties