Vertical vibration of three‐dimensional rigid foundations on layered media