Noise-induced homeostasis in memristor-based neuromorphic systems