Controlling the formation of particle-stabilized water-in-oil emulsions