Variable kinematics layerwise model for analysis of bonded joints