Exact Solution of the Small-Polaron Problem in Infinite Dimensions