Preventing arbitrage to enable preferences in measurement-based peer-to-peer electricity markets in power distribution systems