Spin and model identification of Z' bosons at the LHC