Pinterest to lay off 15% amid AI investment