Extended Bernoulli and Eulerian numbers