Interplay between exchange interactions and charging effects in metallic grains