Australian shares end lower as financials, gold stocks weigh