Coordination chemistry and geometries of some 4,4'-bipyridyl-capped porphyrins. Proton- and ligand-induced switching of conformations