A model of endowment-constrained demand for food in an agricultural economy with empirical applications to Bangladesh