Effects of molecular rotation on electronic relaxation processes in pyrazine and pyrimidine with particular regard to pressure dependence