The mechanism of legal regulation in the sphere of electoral relations: the general theoretical aspect