Development of mercuric iodide energy dispersive X-ray array detectors