On the problem of Pillai with generalized Fibonacci numbers and powers of 2