Deterministic global optimization: an introduction to the diagonal approach