等比数列{an}的公比为q,前n项和为Sn,若Sn+1,Sn,Sn+2成等差数列,则,q的值为