Polycrystalline mercuric iodide films: deposition, properties, and detector performance