Gradients for the partitioned equation-of-motion coupled-cluster method