Use of hard X-ray microprobe for investigation of heterogeneous materials of geological and environmental origin