Self-heating and spontaneous combustion of coal and carbonaceous materials: a method for prediction and prevention