how is gypsum extracted from rock