Optimal universal and state-dependent quantum cloning