Amplitude Analysis of the Decays eta ' -> pi(+)pi(-)pi(0) and eta' -> pi(0)pi(0)pi(0)