Optical-induced electrical current in diamond switched by femtosecond–attosecond laser pulses by ab initio simulations