Combining linear programming and principal-agent models: an example from environmental regulation in agriculture