European and American options: the semi-Markov case