Evaluation of hierarchical structured representations for QSPR studies of small molecules and polymers by recursive neural networks