A method to calculate the neutralization potential of mining wastes