Semiclassical limit for Schrodinger equations with a magnetic field and Hartree-type nonlinearities