Existence results for boundary value problems of second order impulsive differential equations