Mechanical failure mechanisms in ceramic sliding and rolling contacts