SGF-quantales and their groupoids