Photodetachment from phenolate in vacuo and in aqueous solution