Thermodynamics of the early steps in the photocycle of Natronobacterium pharaonis halorhodopsin. Influence of medium and of anion substitution