To keep up with a changing market and climate, mining companies across Australia are phasing out diesel machinery in underground mines.