Determination of gold nanoparticle shape from absorption spectroscopy and ellipsometry