A swashbuckling century from Josh Inglis saw Australia defeat Scotland by 70 runs in the second T20 international in Edinburgh.