On site and lab x-ray diffraction from non-ferrous alloys and other materials