A General Model for Metal Oxide-Based Memristors and Application in Filters