Electronic states and potential energy curves of In2P, InP2, In2P+, and InP2+