v2 of charged particles in central p-Pb collisions with peripheral subtraction and template fit with long-range correlations