Imperfect condition-based maintenance policy for stochastic degradation systems in dynamic environments