Strain-dependent luminescence and piezoelectricity in monolayer transition metal dichalcogenides