Next-to-leading order corrections to top quark decays to heavy quarkonia