Strain control of ferromagnetic thin films and devices