Adjoint formulation of a steady multistage turbomachinery interface using automatic differentiation