401(k) withdrawal rules: What to know before cashing out — and how to avoid penalties