On a problem of Pillai with k–generalized Fibonacci numbers and powers of 2