German attorney general sacked over treason case