Benito Pérez Galdós, Tristana