The pros and cons of a CD: how to know if a certificate of deposit is the right investment for you