Adaptive Polymeric Coatings with Self‐Reporting and Self‐Healing Dual Functions from Porous Core–Shell Nanostructures