记数列{an}的前n项和为Sn,且Sn=2(an-1),则a2=______.