Tuning electronic structure of monolayer InP3 in contact with graphene or Ni: effect of a buffer layer and intrinsic In and P-vacancy.