Opacity and Structural Resilience in Cyberphysical Systems