Search for excited quarks of light and heavy flavor in gamma plus jet final states in proton-proton collisions at root s=13 TeV