A contactless method for measurement of the critical current density and critical temperature of superconducting films