Analysis of the Stress State at the Cogging Joint in Timber Structures