First-principles calculations to investigate structural, electronic, and optical properties of AgWO4 and PdWO4 tungstate materials for optoelectronic applications