An Indonesian court has sentenced an Australian man to 12 years in prison for smuggling cocaine to Bali