Henry XVI, Adipati Bavaria