Bose-glass transition in thin YBa2Cu3O7−δ films