Ngidi took 5 for 42 as Australia were bowled out for 193, with Inglis making 87 after South Africa were set up by half-centuries from Breetzke and Stubbs