The electronic structure of trigonal Se and Te for pressure near the phase transition points