A comprehensive review of molecular optimization in artificial intelligence-based drug discovery