Determinisability of register and timed automata (Logical Methods in Computer Science, 2022)