Soliton ratchetlike dynamics by ac forces with harmonic mixing