On the determination of mass density profiles for gravitational lenses from gravitational wave data