Fingerprinting cyber physical systems: A physics-based approach