Effects of wetting layer structure on surface phase stability and on indium surface diffusion