Bergdahl writing, posts show frustration, struggle