Impulse controllability for the heat equation with inverse square potential and dynamic boundary conditions