Tuning the Curie temperature of FeCo compounds by tetragonal distortion