Three men arrested in connection with the disappearance of 43 Mexican students have admitted to killing them, Mexico's Attorney General says.