Two-dimensional square transition metal dichalcogenides with lateral heterostructures