Marginal Indemnification Function formulation for optimal reinsurance