Rickelton, Bavuma tons put South Africa in strong position