Ab initio calculations of structural, elastic, and electronic properties of silver nitrides