Watermark-based Detection and Attribution of AI-Generated Content