If three nonzero numbers form an arithmetic progression (AP) and the square of these numbers form a geometric progression (GP), find the sum of all possible common ratios of the GP.