Resilient control of cyber‐physical systems under sensor and actuator attacks driven by adaptive sliding mode observer