How antivirus software works to detect and remove viruses?