Pressure induced valence change in ytterbium monoxide