Bounded and almost periodic solutions of nonlinear differential equations : variational vs nonvariational approach ∗