A thermal model for elastohydrodynamic lubrication of rough surfaces