how gypsum is produced as a by product of mining