Copyright Protection in Generative AI: A Technical Perspective