Structural analysis and valence variation in ytterbium pnictides YbX (X=P, As) under high pressure