Benjamin--Ono soliton dynamics in a slowly varying potential