Galactic extinction laws – I. A global NIR analysis with 2MASS photometry