P1-nonconforming triangular finite element method for elliptic and parabolic interface problems