Variations of Constants and Exact Solutions in Multidimensional Gravity