Observation of the Anderson metal-insulator transition with atomic matter waves: Theory and experiment