Adaptive control of a parabolic system with time varying parameters: an averaging analysis