Adjacency spectrum and Wiener index of essential ideal graph of a finite commutative ring