Automatic generation of active coordinates for quantum dynamics calculations: application to the dynamics of benzene photochemistry