How to avoid a big tax penalty on your retirement savings