Size‐consistent approach and density analysis of hyperpolarizability: Second hyperpolarizabilities of polymeric systems with and without defects