Joint maintenance and controller reconfiguration policy for a gradually deteriorating control system. (August 2017)