Australian shares gain on commodity, financial boost