Study of Structural, Electronic, and Magnetic Properties of Cubic and Tetragonal Ba_2FeMoO_6