Generalizations of the Bernoulli polynomials and numbers and corresponding summation formulas