Ion beam acceleration using variable frequency RFQ