Massive multi-mission statistical study and analytical modeling of the Earth’s magnetopause: 1 - A gradient boosting based automatic detection of near-Earth regions