Star-forming regions of the Aquila rift cloud complex - I. NH3 tracers of dense molecular cores