Search for neutrinoless double beta decay with EXO-200 and nEXO