Structure and dynamics of P,N-containing heterocycles and their metal complexes in solution.