Structural, electronic and magnetic properties of Fe nanowires encapsulated in boron nitride nanotubes