Stanislas Wawrinka outlasts Tomas Berdych in tightly-contested semifinal