[2205.09589] Learning Energy Networks with Generalized Fenchel-Young Losses