A model atmosphere analysis of the binary 112 Herculis