South African professor elected president of international maths body