Homogenisation Of The Electrothermal Behaviour Of Granular Material