Identifying and removing structural biases in climate models with history matching