Photodissociation in ion traps