Ferdinand IV (1633–1654), King of Bohemia, Elected Holy Roman Emperor