Energy loss due to adhesion in longitudinal impact of elastic cylinders