Top quark production near threshold and the top quark mass