GW170817 constraints analyzed with Gogny forces and momentum-dependent interactions