An adaptive neural network topology for degradation compensation of thin film tin oxide gas sensors