First-principles study of mechanical and electronic properties of bent monolayer transition metal dichalcogenides