Real algebraic and semialgebraic sets