Intermediate Valence State in YbB4 Revealed by Resonant X-ray Emission Spectroscopy