Cybersecurity Investments with Nonlinear Budget Constraints and Conservation Laws: Variational Equilibrium, Marginal Expected Utilities, and Lagrange Multipliers