Electromechanical grain boundary model with formation mechanism in polycrystalline ferroelectrics