preprint: The stack quotient of a groupoid