A resilient distributed measurement system for smart grid application