Rational Inattention: Beyond the Linear-Quadratic Case