Recycling of mining waste into bricks