Valence states and luminescence properties of ytterbium ions in strontium haloborates