Structural, electronic, magnetic, and optical investigations of sodium chalcogenides: First-principles calculations