Measuring coefficient of friction between materials