Zone-center phonons and elastic properties of ternary chalcopyrite ABSe2 (A = Cu and Ag; B = al, Ga and In)