how a gravity separator works