Critical-state calculation using arbitrary functional Jc and annealing effect on sintered YBa2Cu3O7−δ superconductor