Normal Factor Graphs