A memory-enhanced p-y model for piles in sand accounting for cyclic ratcheting and gapping effects