First principles investigation of electronic and optical properties of AgAlO2