Motlanthe sworn in as South African president