Oscillation of a class of second-order linear impulsive differential equations