Investigations of organic-inorganic hybrids based on homopiperidinium cation with haloantimonates(iii) and halobismuthates(iii). Crystal structures, reversible phase transitions, semiconducting and molecular dynamic properties.