The genomics of tree adaptation to environmental changes