Theory of the pressure dependence of the electronic and optical properties of trigonal Te