Probabilistic analysis of a class of impulsive linear random differential equations via density functions