Influence of temperature and oxygen pressure on the stability of barium or strontium doped neodymium manganites