The general solution of differential equations with Caputo-Hadamard fractional derivatives and impulsive effect