Metal-diamond semiconductor interface and photodiode application