Ice-age survival of Atlantic cod: agreement between palaeoecology models and genetics