Loket, castle above the river