EEG-X: Device-Agnostic and Noise-Robust Foundation Model for EEG