Microlensing in H1413+117: disentangling line profile emission and absorption in a broad absorption line quasar