Bowe Bergdahl gets dishonorable discharge, avoids prison time