Effect of surface roughness on adhesive forces and hysteretic energy losses at the contact of two nominally flat surfaces