Chemical modification of petroleum coke and applications of derived materials