Crystallization of small quantities of glass (or a liquid) segregated in grain boundaries