Phase transition and electronic state modification by lattice strain in 0.5-monolayer Sn/Cu(001)