Australia signs sub deal with US, UK