Sliding surface consisting mainly of ceramics, cermets or hard carbon