Carrier recombination at grain boundaries and the effective recombination velocity