Improving or preserving soil or rock, e.g. preserving permafrost soil by thermal, electrical or electro-chemical means