Rudd replaces Beazley as Australian opposition leader