Mathematical model of COVID-19 spread in Turkey and South Africa: theory, methods, and applications