Structural disorder in perovskite ferroelectric crystals as revealed by XAFS