Effect of thickness and boundary conditions on the behavior of viscoelastic layers in sliding contact with wavy profiles