Critical Temperature of Interacting Bose Gases in Two and Three Dimensions