Because of the way Social Security benefits are determined, retiring a year or two early could cost more than you’d think.