Structural phase changes and strain engineering in two-dimensional materials