The dynamic of repulsion of spiral waves from excitable regions