Structural and magnetic properties of metastable phases and undercooled liquids in Fe83B17