An optimal tradeoff between entanglement and copy complexity for state tomography