Factors associated with maternal mortality among patients meeting criteria of severe maternal morbidity and near miss