A fast tuning method for a RFQ accelerator with ramped inter-vane voltage