The environmental genomics of metazoan thermal adaptation