Jet and jet substructure physics in pp and heavy ion collisions with ALICE