数列{an}中,a1=2,an+1=an+4n,求通项公式an