Density Functional Theory Study of Magnetic Coupling in the Gd12O18 Cluster