A method for analyzing three-dimensional dynamic contact problems in visco-elastic media with kinetic and static friction