Optimization of Photorefractivity Based on Poly(N‐vinylcarbazole) Composites: An Approach from the Perspectives of Chemistry and Physics