Franck–Condon factors in curvilinear coordinates: the photoelectron spectrum of ammonia