Australian PM declares victory in tight election