First principles simulation of a ceramic /Metal interface with misfit