A new pulse method for determining transport critical current of superconducting films