Macron thanks Pelicot after rape trial