Classical and quantum regimes in the collective atomic recoil laser from a Bose-Einstein condensate