Change in the electrical resistance of porous powder and fiber compacts during heating and compressive loading