Fabrication and properties of microcapsules and nanocapsules containing n-octadecane