Criteria for system-environment entanglement generation for systems of any size in pure-dephasing evolutions