Insights into electronic properties of strained two-dimensional semiconductors by out-of-plane bending