Diamond-nickel interfaces: calculation of the electronic and atomic structure and Schottky barriers