On-line design of open-cast and underground mining operations