First-principles computation of the Born effective charges and their band-by-band decomposition