Analysis and design of pile groups