Impulsive problems for semilinear differential equations with nonlocal conditions