The estimation of two-phase and three-phase invariants in P1 when anomalous scatterers are present