Effect of dipolar and exchange interactions on magnetic blocking of maghemite nanoparticles