who wrote the music for the battle hymn of the republic