Seismic and medical ultrasound imaging of velocity and density variations by nonlinear vectorial inverse scattering