Energy Dispersive X-Ray Fluorescence Analysis of Thin and Intermediate Environmental Samples