X-ray fluorescence spectrometry for environmental analysis: Basic principles, instrumentation, applications and recent trends