Origin of zero thermal expansion in an average cubic structure in Pbfree relaxor ferroelectrics