Electrical and Photoelectric Properties of the TiN/p-InSe Heterojunction