Formation of core–shell droplets for the encapsulation of liquid contents