Physician resilience: a grounded theory study of obstetrics and gynaecology residents