Thermal processes during high-voltage electric discharge consolidation of powder materials