Controlling spins and valleys through broken crystal symmetries in layered transition metal dichalcogenides