Ladder climbing and multiphoton dissociation of polyatomic molecules excited with short pulses: Basic theory and applications to HCO