Edinburgh, Stirling and Urquhart castles to reopen