Closed-form expressions for a rigid passive pile in a two-layered soil