Streamer to leader transition criteria for propagation of long sparks and lightning leaders