Characterization of dynamical systems under noise using recurrence networks: Application to simulated and EEG data