Dynamic Weight Adaptation in Spiking Neural Networks Inspired by Biological Homeostasis