Determination of critical current densities of YBa2Cu3O7−δ thin films from AC susceptibility measurements