Effect of uniaxial strain on the structural and magnetic phase transitions in BaFe2As2.