Magnetic hysteresis based on dipolar interactions in granular magnetic systems