Dielectric loss extraction for superconducting microwave resonators