Inhomogeneous soliton ratchets under two ac forces