Impact of CP phases on neutrinoless double beta decay