Magnetoelectricity in topological magnetic textures