Structure and dynamics of eight-membered P,N-heterocycles in solution