Finite-Element Model for Nailed Wood Joints under Reversed Cyclic Load