Text this: First-principles calculations to investigate the bulk, electronic, optical and thermoelectric properties of BaGe2As2 and BaGe2P2 alloys