Snap is the latest local tech employer to lay off staff, though it’s among the first to attribute the cuts to advances in AI.