Valence bands of silver halides determined by X-ray and UV photoemission