Cluster ab initio modeling of local lattice instability in relaxor ferroelectrics