when was the first australian prime minister elected