Fuzzy relations on rings and groups