Pile-head kinematic bending in layered soil