Measurement and prediction of in-cylinder friction in internal combustion engines