Friction and scratch characteristics of textured and rough surfaces using the quasi-continuum method