Impulsive Control of Dynamical Networks