Strain engineering of the electronic structure of 2D materials