xGASS: Robust quantification of asymmetries in global H i spectra and their relationship to environmental processes