Origin of structural and magnetic transitions in BaFe 2 − x ?> RuxAs2 materials