Australia ends offshore detention of refugees