Runaway electron generation and control