Model-reduced gradient-based history matching