First-Principles Calculation of the Superconducting Transition in MgB2 within the Anisotropic Eliashberg Formalism