Neural networks to quantify energies, energetic couplings, epistasis and allostery from deep mutational scanning data