Definition and Mitigation of Impermanent Loss in Liquidity Pools