Otto I. von Wittelsbach, Herzog von Bayern