Injection and extraction for cyclotrons