Modification of the upper rim of homooxacalix[3]arenes and complexation between a nitrohomooxacalix[3]arene derivative and n-hexylamine.