Intermediate coupling theory for the multidimensional polaron