Pulse-shape effects and laser-induced avoided crossings in photodissociation