Optimality conditions of the type of the maximum principle in Goursat-Darboux systems