Ringgit extends gains against US dollar