Magnetoelastic coupling in Co thin films on W(0 0 1)