Digital wizardry restores some of Europe’s most stunning castles to their former glory