A generalization of the Wiener rational basis functions on infinite intervals