Detailed analysis of excited-state systematics in a lattice QCD calculation of g A