Determination of critical current density and transition temperature of YBa2 Cu3 O7−x thin films by measurement of ac susceptibility