Anharmonic lattice dynamics and superionic transition in AgCrSe2