Make file export more flexible by allowing write to GML

Please consider this change, it makes the conversion scripts usable for export to GML (without breaking original XGMML only export). If you specify a file ending with .gml as output, it now writes to GML instead of XGMML. In all other cases it still writes to XGMML.