Effects of crystal structure and on-site Coulomb interactions on the electronic and magnetic structure ofA2Mo2O7(A=Y,Gd, and Nd) pyrochlores