The crossover from the vortex glass to the Bose glass in nanostructured YBa2Cu3O7−x films