Non-relativistic treatment of diatomic molecules interacting with a generalized Kratzer potential in hyperspherical coordinates