Generalized boundary conditions in a thermodynamic model of ferroic materials | Synapse