Study of minor hysteresis loops of YBaCuO:dc and ac hysteresis effects in granular samples