Mechanical behavior of pile foundations subjected to cyclic lateral loading up to the ultimate state.