Hot subdwarfs from the ESO Supernova Ia Progenitor Survey - I. Atmospheric parameters and cool companions of sdB stars