Design of controllers for hybrid linear systems with impulsive inputs and periodic jumps