Strain engineering and epitaxial stabilization of halide perovskites