Analytical approach to soliton ratchets in asymmetric potentials