Australia beat Sri Lanka to square ODI series 2-2