Pulsed laser oxidation and nitridation of metal surfaces immersed in liquid media