Phase transitions in silver gold chalcogenides