Lucid posts Q1 loss despite revenue and production rise