Optimality conditions for a Bolza problem governed by a hyperbolic system of Darboux-Goursat type