Theoretical study on the nonlinear optical properties of phenylenes and influencing factors