Calculations of AC current losses and AC magnetic losses from the scanning Hall probe measurements for a coated conductor