Proton probing measurement of electric and magnetic fields generated by ns and ps laser-matter interactions