Whittaker modules for generalized Weyl algebras