Sampling and sample preparation in EDXRS