How writing rewires your brain to face everyday challenges