Grain boundary structure and properties under external influences