Short-range structure of solid and liquid AgBr determined by multiple-edge X-ray Absorption Spectroscopy