Ringgit ends lower amid pullback in oil prices