William I, Duke of Bavaria — second son of Emperor Louis IV and Margaret II of Hainaut