Diatomite waste derived N-doped porous carbon for applications in the oxygen reduction reaction and supercapacitors