Resilience-enhanced control reconfiguration for autonomous systems