Template-assisted vapour-liquid-solid growth of InP nanowires on (001) InP and Si substrates.