Physics of grain boundaries in the colossal magnetoresistance manganites