EPBiH agrees to restructure troubled coal mines, cut jobs