Response of Nb-based tunnel junctions to synchrotron radiation