Effect of coronal loop structure on wave heating through phase mixing