Photonic simulation of entanglement growth and engineering after a spin chain quench