Australian shares flat as miners, energy stocks weigh