Newton throws for 2 TDs, Panthers beat Bucs 31-13