Gadolinium (atomic number 64) is an element of the 4f series, Identify the correct electronic configuration of gadolinium from the following options:

\(1. (X e) 4 f^{7} 5 d^{1} 6 s^{2} \)

2. \( (X e) 4 f^{6} 5 d^{2} 6 s^{2}\)

3. \((X e) 4 f^{8} 6 d^{2}\)

4. \((X e) 4 f^{9} 5 s^{1}\)