how does writing help critical thinking