Real-time investigation of the photodissociation dynamics of p-chlorotoluene and p-dichlorobenzene