How the Great Fire of Edinburgh 1824 helped transform safety