Looking for the magic number: the optimal district magnitude for political parties in d’Hondt PR and SNTV