The correlation of the critical current density and surface resistance of YBa2Cu3O7−δ thin films