A closed formula for the determination of the impulsive solutions of linear homogeneous matrix differential equations