Adjoint-based optimization of a source-term representation of vortex generators