Optimal Batching and Pricing for Power Grid Interconnection Queues