Unilateral dynamic contact of two viscoelastic beams