Great Britain are unable to give Leon Smith the perfect send-off as Davis Cup captain as Spain claim a 2-0 victory in the semi-finals.