Photoelectronic properties and application of polycrystalline diamond films