The excitation operator method and its application to spin dynamics in the one-dimensional XXZ model