Changes suggested by Asgeir.

Split adjustPref into two methods: clearPeriodicBC and determinePref.
Merge remote-tracking branch 'origin/feature-eigs-periodic' into feature-expm-periodic
Replace adjustPref by determinePref and clearPeriodicBC in chebop/expm.