The semiconductor-to-ferromagnetic-metal transition in FeSb2